package com.kaifamiao.month05.day10;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;

public class Demo {

    public static void main(String[] args) throws Exception {

        File file = new File("E:\\1101\\test\\temp\\0001.png");
        FileInputStream in = new FileInputStream(file);
        FileOutputStream out = new FileOutputStream("E:\\1101\\test\\temp\\ttttt.png");
        byte[] bs = new byte[1024];
        int len;
        while ((len = in.read(bs)) != -1) {
            out.write(bs, 0, len);
        }
        System.out.println("结束");
    }
}
